package cfm.com.cfmscreen.comm;

public class UserInfo {

	private int userId;
    private String userName;
	private String hospital;
	private int hospitalId;
	private int areaId;

	private volatile static UserInfo instance;

	public UserInfo(int userId, String userName, String hospital,
					int hospitalId,int areaId){
		this.userId=userId;
		this.userName=userName;
		this.hospital=hospital;
		this.hospitalId=hospitalId;
		this.areaId=areaId;
	}

	public UserInfo(){

	}

	public static UserInfo getInstance() {
		if (instance == null) {
			instance = new UserInfo();
		}
		return instance;
	}

	public static void setInstance(UserInfo instance) {
		UserInfo.instance = instance;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getHospital() {
		return hospital;
	}

	public void setHospital(String hospital) {
		this.hospital = hospital;
	}

	public int getHospitalId() {
		return hospitalId;
	}

	public void setHospitalId(int hospitalId) {
		this.hospitalId = hospitalId;
	}

	public int getAreaId() {
		return areaId;
	}

	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}
}
